package com.health.userbackstage.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Member {

    @TableId
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    private String fileNumber;
    private String name;
    private String sex;
    private String idcard;
    private String phoneNumber;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date regtime;
    private String password;
    private String email;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String remark;
    private Integer deleted;
    private Integer version;

}
